#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../xry-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy xry-gateway "
cp ../xry-gateway/target/xry-gateway.jar ./xry/gateway/jar

echo "begin copy xry-auth "
cp ../xry-auth/target/xry-auth.jar ./xry/auth/jar

echo "begin copy xry-visual "
cp ../xry-visual/xry-monitor/target/xry-visual-monitor.jar  ./xry/visual/monitor/jar

echo "begin copy xry-modules-system "
cp ../xry-modules/xry-system/target/xry-modules-system.jar ./xry/modules/system/jar

echo "begin copy xry-modules-file "
cp ../xry-modules/xry-file/target/xry-modules-file.jar ./xry/modules/file/jar

echo "begin copy xry-modules-job "
cp ../xry-modules/xry-job/target/xry-modules-job.jar ./xry/modules/job/jar

echo "begin copy xry-modules-gen "
cp ../xry-modules/xry-gen/target/xry-modules-gen.jar ./xry/modules/gen/jar

